<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="Static.Option"%>
<%@page import="java.util.*"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>

<%

    String path="",title="";
    Option option = new Option();
    String val=request.getParameter("option");
 
    if(val!=null&&val!=""){
 
    int opt = Integer.parseInt(val);
    path=option.getPath(opt);
    title=option.getTitle(opt);

	if (path == "error" || title=="error") {
	    path="notfound.jsp";
        title=" Page non trouvée";
	}
    }
%>

<html:html locale="true">
    <head>
    <title>Administration de radius | <%= title %> </title>
    <meta name="description" content="Joomla - the dynamic portal engine and content management system">
    <meta name="keywords" content="Joomla, joomla">
    <meta name="Generator" content="Joomla! - Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.">
    <meta name="robots" content="index, follow">
        <link rel="shortcut icon" href="http://localhost/comparateur1/images/favicon.ico">
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

    <link rel="stylesheet" href="css/template_css.css"  type="text/css">
    <link rel="stylesheet" href="css/admin_login.css" type="text/css">
    <link rel="stylesheet" href="css/theme.css" type="text/css">
    <link rel="stylesheet" href="css/template_css2.css" type="text/css">

    <link rel="alternate" type="application/rss+xml" title="Comparateur de Prix" href="http://localhost/comparateur1/index.php?option=com_rss&amp;feed=RSS2.0&amp;no_html=1">
    <script language="javascript" type="text/javascript" src="js/clock.js"> </script>
    <script charset="utf-8" id="injection_graph_func" src="js/injection_graph_func.js"></script>
    </head>
<body leftmargin="0" topmargin="0" bgcolor="#ffffff" marginheight="0" marginwidth="0">
<center>

<table border="0" cellpadding="0" cellspacing="0" width="712" height="702">
	<tbody><tr>
		<td>
			<table border="0" cellpadding="0" cellspacing="0" width="712" height="20">
				<tbody><tr>
					<td background="images/siteground_01.jpg" width="7" height="20">
					</td>
					<td background="images/siteground_02.jpg" width="699" height="20">
					<table cellpadding="0" cellspacing="0"><tbody><tr>					
						<td border="0" onclick="javascript:toggleClock();" alt="12/24 mode" title="12/24 mode" align="left" width="11" height="17">
						<img src="images/clock.gif" width="7" height="7">
						</td>
					</tr></tbody></table>
					</td>
					<td background="images/siteground_03.jpg" width="6" height="20">
					</td>
				</tr>
			</tbody></table></td>
	</tr>
	<tr>
		<td>
			<table border="0" cellpadding="0" cellspacing="0" width="712" height="148">
				<tbody><tr>
					<td background="images/siteground_04.jpg" width="7" height="148">
					</td>
					<td background="images/siteground_05.jpg" width="699" height="148">
					</td>
					<td background="images/siteground_06.jpg" width="6" height="148">
					</td>
				</tr>
			</tbody></table></td>
	</tr>
	<tr>
		<td>
			<table border="0" cellpadding="0" cellspacing="0" width="712" height="27">
				<tbody><tr>
					<td background="images/siteground_07.jpg" width="7" height="27">
					</td>
					<td background="images/siteground_08.jpg" width="699" height="27">
					<span class="pathway"><%= title %> </span>					</td>
                    <%
                    if((session.getAttribute("username")!=null)&&(session.getAttribute("username")!="")){
                        %>
					<td background="images/siteground_09.jpg" width="6" height="27">
                    <span  style="float:right; " >
                        <a href="index.jsp?option=99"><img src="adminfiles/logout.jpg" alt="logout"height="25" border="0" ></a> </span>
					</td>

                    <%
                    }

                    %>
				</tr>
			</tbody></table></td>
	</tr>
	<tr>
		<td>
			<table border="0" cellpadding="0" cellspacing="0" width="712" height="481">
				<tbody><tr>
					<td background="images/siteground_10.jpg" width="7" height="481">
					</td>
					<td background="images/siteground_11.jpg" valign="top" width="699" height="481">
					<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
						<tbody><tr>
            <%
                
                if(val==null||val==""){ %>

                   <jsp:directive.include file="login.jsp"/>

                 <%} else{   %>

                   <jsp:directive.include file="left.jsp"/>


                            <%if(path.equals("addnas.jsp"))
                            {  %>
                            <jsp:directive.include file="addnas.jsp"/>

                            <%
                            }else if(path.equals("editnas.jsp"))
                            {  %>
                            <jsp:directive.include file="editnas.jsp"/>
                            <%
                            }else if(path.equals("addradcheck.jsp"))
                            {  %>
                            <jsp:directive.include file="addradcheck.jsp"/>
                            <%
                            }else if(path.equals("editradcheck.jsp"))
                            {  %>
                            <jsp:directive.include file="editradcheck.jsp"/>
                            <%
                            }else if(path.equals("addradgroupcheck.jsp"))
                            {  %>
                            <jsp:directive.include file="addradgroupcheck.jsp"/>
                            <%
                            }else if(path.equals("editradgroupcheck.jsp"))
                            {  %>
                            <jsp:directive.include file="editradgroupcheck.jsp"/>
                            <%
                            }else if(path.equals("addusergroup.jsp"))
                            {  %>
                            <jsp:directive.include file="addusergroup.jsp"/>

                            <%
                            }else if(path.equals("editusergroup.jsp"))
                            {  %>
                            <jsp:directive.include file="editusergroup.jsp"/>

                            <%                            
                            }else{ %>

                    <jsp:include page="<%= path %>" flush="true">
                        <jsp:param name="title" value="<%= title %>"/>
                        <jsp:param name="path" value="<%= path %>"/>
                    </jsp:include>

                    <%  } %>

                   
                <%  } %>

						</tr>
					</tbody></table>
					</td>
					<td background="images/siteground_12.jpg" width="6" height="481">
					</td>
				</tr>
			</tbody></table></td>
	</tr>
	<tr>
		<td>
			<table border="0" cellpadding="0" cellspacing="0" width="712" height="7">
				<tbody><tr>
					<td background="images/siteground_13.jpg" width="7" height="7">
					</td>
					<td background="images/siteground_14.jpg" width="699" height="7">
					</td>
					<td background="images/siteground_15.jpg" width="6" height="7">
					</td>
				</tr>
			</tbody></table></td>
	</tr>
	<tr>
		<td>
			<table border="0" cellpadding="0" cellspacing="0" width="712" height="19">
				<tbody><tr>
					<td background="images/siteground_16.jpg" width="7" height="19">
					</td>
					<td align="center" background="images/siteground_17.jpg" width="699" height="19">
					<p aling="center" style="color: rgb(102, 102, 102);">	Feeradius! Simply the best
                    </p>
					</td>
					<td background="images/siteground_18.jpg" width="6" height="19">
					</td>
				</tr>
			</tbody></table></td>
	</tr>
</tbody>
</table>

</center>
<!-- 1244385976 -->
</body>
</html:html>
